package com.frank.practice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frank.practice.entity.SubjectLabel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2025/4/11
 * @description
 */
@Mapper
public interface SubjectLabelMapper extends BaseMapper<SubjectLabel> {
    /**
     * 根据 Subject ID 查询 label 名称，返回 List<String>
     *
     * @param subjectId subject id
     * @return label name list
     */
    List<String> findLabelNameBySubjectId(@Param("subjectId") Long subjectId);

    /**
     * 根据 subject id 查询 label id 列表
     *
     * @param subjectId subject id
     * @return label id list
     */
    List<Long> findLabelIdsBySubjectId(@Param("subjectId") Long subjectId);
}